import {useRef} from "react"
export default function UpdataFun({updataInfo,info}){
    const textVal=useRef()
    return (
        <div className="watchfun">
            <div className="con">
               <h2>
                   编辑纪要
               </h2>
               <div>
                  <textarea ref={textVal} defaultValue={info.note_content}  rows="5">
                      
                  </textarea>
               </div>
               <button onClick={()=>{updataInfo(textVal.current.value.trim(),info._id,info.note_done)}}>保存</button>
            </div>
        </div>
    )
}